#!/bin/bash

# 检查IPv4广播ICMP请求是否已忽略
if [[ $(sysctl -n net.ipv4.icmp_echo_ignore_broadcasts 2>/dev/null) -eq 1 ]]; then
    echo "通过：IPv4广播ICMP请求已忽略"
else
    echo "失败：IPv4广播ICMP请求未忽略"
    exit 1
fi
